package com.qiaofang.housewarehouse.service.impl;


import com.qiaofang.housewarehouse.dao.EsDAO;
import com.qiaofang.housewarehouse.dao.HbaseDao;
import com.qiaofang.housewarehouse.dao.domain.IndexCityRegion;
import com.qiaofang.housewarehouse.dao.domain.IndexCityRegionDistrict;
import com.qiaofang.housewarehouse.dao.utils.ConfigUtils;
import com.qiaofang.housewarehouse.service.CityQueryService;
import com.qiaofang.housewarehouse.service.HouseCollectionCharacterService;
import com.qiaofang.housewarehouse.service.compose.CityQueryCompose;
import com.qiaofang.housewarehouse.stub.bean.SaleAndRentalByCityDTO;
import com.qiaofang.housewarehouse.stub.constants.TableConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HouseCollectionCharacterServiceImpl implements HouseCollectionCharacterService {
    private static final Logger logger = LoggerFactory.getLogger(HouseCollectionCharacterServiceImpl.class);

    @Resource
    private HbaseDao hbaseDao;
    @Resource
    private EsDAO esDAO;

    @Override
    public SaleAndRentalByCityDTO querySaleAndRentalByCity(String cityName) throws Exception {
        SaleAndRentalByCityDTO saleAndRentalByCityDTO = esDAO.querySaleAndRentalByCity(cityName);
        return saleAndRentalByCityDTO;
    }
}
